package skewreduce.framework.planner.partition;

import skewreduce.framework.planner.PartitionNode;
import skewreduce.framework.planner.axis.Axis;
import skewreduce.framework.planner.axis.AxisChooser;
import skewreduce.framework.planner.axis.AxisChooser.PreparedAxes;

public class BruteForcePartitioner extends Partitioner {
	@Override
	public PartitionNode[] partition(PartitionNode root) {
		PreparedAxes axes = AxisChooser.prepareAxes(getModel(), root);
		if ( axes == null ) return null;
		return doPartition(root,axes.getAxes(),axes.getSortOrder());
	}
}
